using System.Collections.Generic;
using UnityEngine;

namespace Data
{
    [CreateAssetMenu]
    public class LightData : ScriptableObject
    {
        public List<LightInOut> LightInOuts;

        public LightInOut GetLightInOut(LightVector inLightVector)
        {
            for (int i = 0; i < this.LightInOuts.Count; i++)
            {
                if (this.LightInOuts[i].InLight == inLightVector)
                {
                    return this.LightInOuts[i];
                }
            }
            return null;
        }

    }

    [System.Serializable]
    public class LightInOut
    {
        /// <summary>
        /// 入射方向
        /// </summary>
        public LightVector InLight;
        /// <summary>
        /// 发射方向
        /// </summary>
        public List<LightVector> OutLights;
    }
}